package org.ruoyi.interview.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ruoyi.common.core.validate.AddGroup;
import org.ruoyi.common.core.validate.EditGroup;
import org.ruoyi.interview.domain.InterviewQuestionCategory;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * 面试题分类业务对象 interview_question_category
 *
 * @author ruoyi
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AutoMapper(target = InterviewQuestionCategory.class, reverseConvertGenerate = false)
public class InterviewQuestionCategoryBo {

    /**
     * 分类主键
     */
    @NotNull(message = "分类主键不能为空", groups = {EditGroup.class})
    private Long categoryId;

    /**
     * 父级分类ID
     */
    private Long parentId;

    /**
     * 分类名称
     */
    @NotBlank(message = "分类名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String categoryName;

    /**
     * 分类描述
     */
    private String categoryDescription;

    /**
     * 显示顺序
     */
    private Integer orderNum;

    /**
     * 图标地址
     */
    private String icon;

    /**
     * 状态（0正常 1停用）
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

}